/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-04-06
 * Time: 21:06
 */
public class demo1 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        System.out.println("wait 之前");
        synchronized (object){
            object.wait();
        }
        System.out.println("wait 之后");
    }
}
